package com.mingqijia.gassafety.shared.constant;

import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * @author zhangfei
 * @version 1.0.0
 * @ClassName DtuPushTypeEnum.java
 * @Description TODO
 * @createTime 2023年12月18日
 */
@Getter
@RequiredArgsConstructor
public enum HuiShengStatusEnum {

    // 工单状态 0:服务取消 1：服务中 2:服务完成
    PUSH_1(0, "服务取消"),
    PUSH_0(1, "服务中"),
    PUSH_2(2, "服务完成");

    private final int code;
    private final String name;


    public static HuiShengStatusEnum getPushTypes(int code) {
        for (HuiShengStatusEnum dtuPushTypeEnum : HuiShengStatusEnum.values()) {
            if (dtuPushTypeEnum.getCode()==(code)) return dtuPushTypeEnum;
        }
        return null;
    }

}
